package com.kt.app.ui.components


import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Card
import androidx.compose.material3.CardColors
import androidx.compose.material3.CardElevation
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp

@Composable
fun CardSample() {

    var explantion by remember { mutableStateOf(false) }

    Card(
        shape =RoundedCornerShape(0.dp),
        colors=CardColors(
            contentColor = Color.Green, containerColor = Color.Gray,
            disabledContainerColor = Color.Gray,
            disabledContentColor = Color.Gray
        ),
        modifier = Modifier.fillMaxWidth()

    ) {
        Text("Card Sample", modifier = Modifier.padding(16.dp))
    }

}

@Preview
@Composable
fun CardSamplePreview() {
    CardSample()
}

